package Exercise05;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class VehiclesFactory {
    private static Horse horse = new Horse();

    //创建交工工厂类，有两个方法返回交通工具
    public static Horse getHorse(){
        return horse;
    }
    public static Boat getBoat(){
        return new Boat();
    }


}


